{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" href="__PUBLIC__/plugs/bootstrap-select/css/bootstrap-select.css">
{/block}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-right">
			<button type="button" class="btn btn-primary" id="create_book_id">
				<i class="fa fa-plus"></i> 添加书名 <span class="caret"></span>
			</button>
			<button class="btn btn-danger ajax-post confirm" url="{:url('del')}" target-form="ids">删 除</button>
        </div>
		<div class="row">
			<form method="get">
				<div class="col-sm-12 col-md-4 col-lg-3">
					<input type="text" class="form-control" name="keyword" value="{$keyword|default=''}" placeholder="">
				</div>
				<div class="col-sm-12 col-md-4">
					<button class="btn btn-primary" type="submit">搜索</button>
				</div>
				
			</form>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive clearfix">
			<div class="table-responsive clearfix">
				<table class="table table-striped table-bordered table-hover responsive">
					<thead>
						<tr>
							<th width="30"><input class="checkbox check-all" type="checkbox"></th>
							<th>ID </th>
							<th>频道</th>
                            <th>书名名称</th>
							<th>排序</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
                        {empty name="list"}
						<tr><td colspan="6" align="center">暂无数据！</td></tr>
						{/empty}
						{volist name="list" id="item"}
                        <tr>
							<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
							<td>{$item.id}</td>
                            <td>{$item.name}</td>
                            <td>{$item.title}</td>
							<td>{$item.sort}</td>
                            <td><a href="JavaScript:;" onclick="editreferral_book_id(this)" data-json='{:json_encode($item)}'><i class="fa fa-edit"></i> 修改</a></td>
                        </tr>
                        {/volist}
					</tbody>
				</table>
				{$page}
			</div>
		</div>
	</div>
</div>


 </div><!-- /.modal-content -->
 </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script type="text/javascript" src="__PUBLIC__/plugs/bootstrap-select/js/bootstrap-select.js"></script>

{include file="adsmaterialbook/_from" /}
{/block}
{block name="script"}

{/block}
